Skip to content

Commit 8e9be57

Browse files
committed
Tidy - fix regex syntax (broken in previous commit)
1 parent a7f8965 commit 8e9be57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/ruby/lib/sonicpi/sample_loader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def ls_samples(path, recursive=false)
158158
res = @cached_folder_contents[path]
159159
return res if res
160160
# match wav, aiff, aif, wave, flac, mp3, ogg and oga files
161-
pattern = '*.{[wW][aA][vV],[wW][aA][vV][eE],[aA][iI][fF],[aA][iI][fF][fF],[fF][lL][aA][cC],[mM][pP]3},[oO][gG][gGaA]'
161+
pattern = '*.{[wW][aA][vV],[wW][aA][vV][eE],[aA][iI][fF],[aA][iI][fF][fF],[fF][lL][aA][cC],[mM][pP]3,[oO][gG][gGaA]}'
162162
if recursive
163163
res = Dir.chdir(path) { Dir.glob("**/#{pattern}").map { |p| File.expand_path(p) } }.sort
164164
else

0 commit comments

Comments
 (0)