Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot fix: Adds ability to process cklb files when in event mode. #101

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

Matte22
Copy link
Collaborator

@Matte22 Matte22 commented Mar 4, 2024

This fix introduces the ability to process CKLB files when running watcher in event mode.

@Matte22 Matte22 requested a review from csmig March 4, 2024 21:38
lib/events.js Outdated
@@ -34,7 +34,7 @@ export default function startFsEventWatcher () {
watcher.on('add', file => {
// chokidar glob argument doesn't work for UNC Windows, so we check file extension here
const extension = file.substring(file.lastIndexOf(".") + 1)
if (extension.toLowerCase() === 'ckl' || extension.toLowerCase() === 'xml') {
if (extension.toLowerCase() === 'ckl' || extension.toLowerCase() === 'xml' || extension.toLowerCase() == 'cklb') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use === to be consistent within the expression

Copy link

sonarqubecloud bot commented Mar 5, 2024

Quality Gate Passed Quality Gate passed for 'NUWCDIVNPT_stigman-watcher'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@csmig csmig merged commit 32527f7 into main Mar 5, 2024
3 checks passed
@csmig csmig deleted the events-hotfix branch March 5, 2024 15:24
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.

2 participants