Commit 89ca7c2
Fix SCSS rule detection to use correct RegExp test method
Changed from incorrect '.scss'.match(rule.test) to correct
rule.test.test('.scss') in webpack configuration.
The previous code was calling match() on a string with a RegExp
parameter, when it should use the RegExp's test() method to check
if a string matches the pattern.
Fixed in both:
- spec/dummy/config/webpack/commonWebpackConfig.js
- react_on_rails_pro/spec/dummy/config/webpack/commonWebpackConfig.js
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent dbdac06 commit 89ca7c2
File tree
2 files changed
+2
-2
lines changed- react_on_rails_pro/spec/dummy/config/webpack
- spec/dummy/config/webpack
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments