Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -226,8 +226,8 @@ |
227 | 227 | } |
228 | 228 | |
229 | 229 | // Check $name for illegal characters |
230 | | - if ( preg_match( '/[|,]/', $name ) ) { |
231 | | - throw new MWException( "ResourceLoader module name '$name' is invalid. Names may not contain pipes (|) or commas (,)" ); |
| 230 | + if ( preg_match( '/[|,!]/', $name ) ) { |
| 231 | + throw new MWException( "ResourceLoader module name '$name' is invalid. Names may not contain pipes (|), commas (,) or exclamation marks (!)" ); |
232 | 232 | } |
233 | 233 | |
234 | 234 | // Attach module |