Skip to content

Commit

Permalink
Fix overly broad regex range
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Nov 9, 2022
1 parent eb43b72 commit 429dc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function webpackDefaults(env, config, bundles, isPlugin = false) {
* This function resolves SASS files using a [~][module:]path syntax
*/
function sassResolver(url) {
const match = url.match(/^(~?)(?:(\w+):)?([\w/-_]+)/);
const match = url.match(/^(~?)(?:(\w+):)?([\w/_-]+)/);
if (match) {
const skipOverride = match[1] === '~';
const mod = match[2];
Expand Down

0 comments on commit 429dc14

Please sign in to comment.