Skip to content

Commit 25f2532

Browse files
author
Jake Bell
committed
Making regex a bit more specific.
1 parent 45b9c21 commit 25f2532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gist_filter.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function gist_filter_filter_info() {
4444
function gist_filter_gist_filter_process($text, $filter, $format) {
4545
$display = $filter->settings['gist_filter_display_method'];
4646
$callback = '_gist_display_' . $display;
47-
return preg_replace_callback('@\[gist\:(\d+)\:?(.*)?\]@', $callback, $text);
47+
return preg_replace_callback('@\[gist\:(\d+)\:?([^\]])+?\]@', $callback, $text);
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)