Skip to content

Conversation

@Khotul
Copy link

@Khotul Khotul commented Aug 15, 2022

Hey, it's me again, the same guy who made stupid issues and bothered you on facebook quite a while ago. After 4 years, I have returned with much more coding (and life) knowledge, ready to get this project into a more usable state

Running any Tower Storm's node app that uses the bulk-load.js file (ex. botmanager/index.js) causes it to crash, due to file.path.match(/\/([^\/.]+)\./) returning null.

This pull request fixes that by replacing the file.path.match function with file.replace, and changing regex to target the file extension.

Regex should only target the characters after the last dot, to prevent files like foo.bar.js being read as foo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant