mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-06-11 13:51:39 +02:00
Removing global flag for replacing whitespaces
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
|
||||
}
|
||||
else if( leadingWs > 1 ) {
|
||||
text = text.replace( new RegExp('\\n? {' + leadingWs + '}','g'), '\n' );
|
||||
text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' );
|
||||
}
|
||||
|
||||
return text;
|
||||
|
Reference in New Issue
Block a user