Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P5451
(An Untitled Masterwork)
Active
Public
Actions
Authored by
matmarex
on May 16 2017, 1:48 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F8099387:
May 16 2017, 1:48 PM
2017-05-16 13:48:58 (UTC+0)
Subscribers
None
replaceLater.forEach( function ( widget, i ) {
config = config.replace(
// Match any number of spaces (for indentation) followed by our placeholder
new RegExp( '([ ]+)"' + replaceKeyword + i + '"' ),
function ( all, indent ) {
var code = getCode( widget );
// Re-add the indent at the beginning, and after every newline
return indent + code.replace( /\n/g, '\n' + indent );
}
);
} );
Event Timeline
matmarex
created this paste.
May 16 2017, 1:48 PM
2017-05-16 13:48:58 (UTC+0)
Log In to Comment