Skip to content

Commit

Permalink
Fix multiline parse
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranstrom committed Jan 24, 2017
1 parent c78ffcf commit ac782d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/parse.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const sass = require('node-sass');

// TODO: Fix regex to only include declarations, not all appearances of variables
const REGEX_VARIABLE = /(\$[\w-_]+)\s*:\s*(.*?);/g;
const REGEX_VARIABLE = /(\$[\w-_]+)\s*:\s*((.*?\n?)+?);/g;
const REGEX_GLOBAL_VARIABLE = /(\$[\w-_]+)\s*:\s*(.*?)\s+!global\s*;/g;
const REGEX_DEEP_CONTEXT = /({[^{}]*})/g;
// TODO: Include expression in variables;

function decontextify(data) {
let strippedData = data;
Expand Down

0 comments on commit ac782d2

Please sign in to comment.