I disagree...
a semi-automatic pistol that has an ability to accept a detachable magazine
A glock has a detachable magazine and would therefore be illegal. The use of the word 'and' in the sentence also disallows those with detachable magazines outside of the pistol grip. Nowhere is it stated that pistols that have magazines in the pistol grip are "ok".