geekflyer / gulp-ui5-preload

Create a Component-preload.js file for openui5 / sapui5 projects
33 stars 10 forks source link

Allows for special String.prototype.replace strings #7

Closed cschuff closed 7 years ago

cschuff commented 7 years ago

Allows for the special strings of String.prototype.replace to occur in code. This is achieved by passing a function (which will not touch those special strings) instead of passing a plain string into String.prototype.replace

see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter

geekflyer commented 7 years ago

👍 interesting quirk of string.replace . Never saw that before haha. Thanks for the contribution!

cschuff commented 7 years ago

Me neither :D You never stop learning :)

Thanks for the fast response!