$
This commit is contained in:
17
node_modules/webpack/lib/serialization/RegExpObjectSerializer.js
generated
vendored
Normal file
17
node_modules/webpack/lib/serialization/RegExpObjectSerializer.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
class RegExpObjectSerializer {
|
||||
serialize(obj, { write }) {
|
||||
write(obj.source);
|
||||
write(obj.flags);
|
||||
}
|
||||
deserialize({ read }) {
|
||||
return new RegExp(read(), read());
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RegExpObjectSerializer;
|
Reference in New Issue
Block a user